<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-shaketicketHome-edit" th:object="${shaketicketHome}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">活动名称：</label>
				<div class="col-sm-8">
					<input id="actName" name="actName" th:field="*{actName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">启用状态（0：停用；1：激活）：</label>
				<div class="col-sm-8">
					<input id="activeFlag" name="activeFlag" th:field="*{activeFlag}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">活动规则：</label>
				<div class="col-sm-8">
					<input id="detail" name="detail" th:field="*{detail}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">开始时间：</label>
				<div class="col-sm-8">
					<input id="beginTime" name="beginTime" th:field="*{beginTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">结束时间：</label>
				<div class="col-sm-8">
					<input id="endTime" name="endTime" th:field="*{endTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">兑奖截止日期：</label>
				<div class="col-sm-8">
					<input id="deadlinetime" name="deadlinetime" th:field="*{deadlinetime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">模版简称：</label>
				<div class="col-sm-8">
					<input id="template" name="template" th:field="*{template}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">抽奖次数：</label>
				<div class="col-sm-8">
					<input id="count" name="count" th:field="*{count}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">每日抽奖次数：</label>
				<div class="col-sm-8">
					<input id="numPerDay" name="numPerDay" th:field="*{numPerDay}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">活动链接：</label>
				<div class="col-sm-8">
					<input id="hdurl" name="hdurl" th:field="*{hdurl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">短链接：</label>
				<div class="col-sm-8">
					<input id="shortUrl" name="shortUrl" th:field="*{shortUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否关注可参加 0否1是：</label>
				<div class="col-sm-8">
					<input id="foucsUserCanJoin" name="foucsUserCanJoin" th:field="*{foucsUserCanJoin}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否绑定手机可参加 0否1是：</label>
				<div class="col-sm-8">
					<input id="bindingMobileCanJoin" name="bindingMobileCanJoin" th:field="*{bindingMobileCanJoin}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否中奖可参与 0：中奖可继续参与 1:中奖不可参与：</label>
				<div class="col-sm-8">
					<input id="winCanJoin" name="winCanJoin" th:field="*{winCanJoin}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">公众号原始id：</label>
				<div class="col-sm-8">
					<input id="jwid" name="jwid" th:field="*{jwid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">所属项目编码：</label>
				<div class="col-sm-8">
					<input id="projectCode" name="projectCode" th:field="*{projectCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建人：</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "shaketicket/shaketicketHome";
		$("#form-shaketicketHome-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-shaketicketHome-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
